﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AutomationTools.Procedimentos.Acao.Aguardar;

namespace AutomationTools.Procedimentos.SimulacaoUso.Web
{
    public class AguardarReadyStateComplete : AguardarExpressao<WebBrowser>
    {
        public AguardarReadyStateComplete()
            : this(x => true) { }

        public AguardarReadyStateComplete(Func<WebBrowser, bool> and)
            : base(x => x.ReadyState == WebBrowserReadyState.Complete && and(x)) { }
    }
}
